package com.whfc.fuum.param;

import lombok.Data;
import org.hibernate.validator.constraints.Length;

import java.io.Serializable;

/**
 * @author: sun
 * @version: v1.0.0
 * @since 2022/8/1
 */
@Data
public class WxUserParam implements Serializable {

    /**
     * 用户ID
     */
    private Integer wxUserId;

    /**
     * 用户名称
     */
    @Length(max = 30, message = "名称不能超过30个字符")
    private String name;

    /**
     * 头像链接地址
     */
    @Length(max = 255, message = "头像链接地址不能超过255个字符")
    private String avatarUrl;

    /**
     * 密码
     */
    @Length(max = 50, message = "密码不能超过50个字符")
    private String password;

    @Override
    public String toString() {
        return "WxUserParam{" +
                "wxUserId=" + wxUserId +
                ", name='" + name + '\'' +
                ", avatarUrl='" + avatarUrl + '\'' +
                ", password='" + password + '\'' +
                '}';
    }
}
